
package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 订单详情Entity
 * @author yangs
 * @version 2017-09-19
 */
public class Waybill extends DataEntity<Waybill> {
	
	private static final long serialVersionUID = 1L;
	private String waybillCode;		// 运单号
	private String ordersCode;		// 订单号
	private String goodsCode;		// 商品号
	private String goodsCnName;		// 商品中文名
	private String goodsEnName;		// 商品英文名
	private String num;		// 数量
	private String status;		// 到货确认：0未收货，1已收货
	private String logistics;		// 物流公司
	private String logisticsCode;		// 物流单号
	private String address;		// 邮寄地址
	private String remark;		// 备注
	private String warehouseId;//发货仓库id
	
	public Waybill() {
		super();
	}

	public Waybill(String id){
		super(id);
	}
	
   	
	public String getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(String warehouseId) {
		this.warehouseId = warehouseId;
	}



	@Length(min=0, max=30, message="运单号长度必须介于 0 和 30 之间")
	public String getWaybillCode() {
		return waybillCode;
	}

	public void setWaybillCode(String waybillCode) {
		this.waybillCode = waybillCode;
	}
	
	@Length(min=0, max=30, message="订单号长度必须介于 0 和 30 之间")
	public String getOrdersCode() {
		return ordersCode;
	}

	public void setOrdersCode(String ordersCode) {
		this.ordersCode = ordersCode;
	}
	
	@Length(min=0, max=50, message="商品号长度必须介于 0 和 50 之间")
	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}
	
	@Length(min=0, max=50, message="商品中文名长度必须介于 0 和 50 之间")
	public String getGoodsCnName() {
		return goodsCnName;
	}

	public void setGoodsCnName(String goodsCnName) {
		this.goodsCnName = goodsCnName;
	}
	
	@Length(min=0, max=50, message="商品英文名长度必须介于 0 和 50 之间")
	public String getGoodsEnName() {
		return goodsEnName;
	}

	public void setGoodsEnName(String goodsEnName) {
		this.goodsEnName = goodsEnName;
	}
	
	@Length(min=0, max=11, message="数量长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
	@Length(min=0, max=11, message="到货确认：0未收货，1已收货长度必须介于 0 和 11 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=50, message="物流公司长度必须介于 0 和 50 之间")
	public String getLogistics() {
		return logistics;
	}

	public void setLogistics(String logistics) {
		this.logistics = logistics;
	}
	
	@Length(min=0, max=50, message="物流单号长度必须介于 0 和 50 之间")
	public String getLogisticsCode() {
		return logisticsCode;
	}

	public void setLogisticsCode(String logisticsCode) {
		this.logisticsCode = logisticsCode;
	}
	
	@Length(min=0, max=500, message="邮寄地址长度必须介于 0 和 500 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=255, message="备注长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}